package com.gopay.solution.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.solution.dao.SsAcctSolutionRelDAO;
import com.gopay.solution.domain.po.SsAcctSolutionRel;
import com.gopay.solution.manager.SsPeSolutionManager;

@Service(value = "ssPeSolutionManager")
public class SsPeSolutionManagerImpl implements SsPeSolutionManager {

    @Resource(name = "ssAcctSolutionRelDAO")
    private SsAcctSolutionRelDAO ssAcctSolutionRelDAO;

    @Override
    public SsAcctSolutionRel findRelByAcctId(String acctId, String soluType) {
        SsAcctSolutionRel rel = ssAcctSolutionRelDAO.getByAcctIdAndSoluType(acctId, soluType);
        return rel;
    }

	@Override
	public List<SsAcctSolutionRel> findRelListByAcctId(String acctId, String[] soluTypes) {
		return ssAcctSolutionRelDAO.getByAcctIdAndSoluTypes(acctId, soluTypes);
	}

}
